-- GENERATED SPELL FOR [Frostmane Seer] --


function spell0_1397(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1397', 3000, 1)
end

function spell1_1397(pUnit, Event) --@Lightning Shield,Self--
pUnit:FullCastSpellOnTarget(324,pUnit)
pUnit:RegisterEvent('Sorts_1397', 636, 1)
end

function Sorts_1397(pUnit, Event)
local choix_sorts_1397 = math.random(0, 1)
if choix_sorts_1397 == 0 then
pUnit:RegisterEvent('spell0_1397', 1, 1)
end
if choix_sorts_1397 == 1 then
pUnit:RegisterEvent('spell1_1397', 1, 1)
end
end

function mob1397_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1397', math.random(1500, 3000), 1)
end

function mob1397_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1397_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1397_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1397, 1, 'mob1397_Action')
RegisterUnitEvent(1397, 2, 'mob1397_Leave')
RegisterUnitEvent(1397, 3, 'mob1397_Kill')
RegisterUnitEvent(1397, 4, 'mob1397_Die')
